package com.runfast.waimai.service;

import com.runfast.common.service.IService;
import com.runfast.waimai.dao.model.RunfastGoodsSellRecord;
import com.runfast.waimai.dao.model.RunfastGoodsSellRecordExample;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import java.util.Map;


public interface RunfastGoodsSellRecordService extends IService<RunfastGoodsSellRecord, Integer, RunfastGoodsSellRecordExample> {
    /**获取骑手当天接单未完成的订单信息集合*/
    List<RunfastGoodsSellRecord> selectJieDanAndPeiSongByMap(Map<Object,Object> map);
    /**获取骑手当天已接单未配送未完成订单数量，当天配送中订单数量，当天骑手订单总数量*/
    Integer countJieDanOrPeiSongOrTotalByMap(Map<Object,Object> map);
    List<RunfastGoodsSellRecord> selectByMapWithPageable(Map<Object,Object> map);
    Integer countByMap(Map<Object,Object> map);
    /**调度台订单信息*/
    List<RunfastGoodsSellRecord> selectByMapDiaoDu(Map<Object,Object> map);
    /**调度台订单信息*/
    Integer countByMapDiaoDu(Map<Object,Object> map);
    Map<Object,Object> cityData(Map<Object,Object> map);



    /**以下为孟祥的代码*/
    List<Map<String,String>> findByAgentnameAndbusinessnameAndTime(List agentid, String name, Date date1, Date date2, Integer isdelive, Integer page, Integer pagesize);
    Integer findByAgentnameAndbusinessnameAndTimecount(List agentid, String name, Date date1, Date date2, Integer isdelive,Integer page,Integer pagesize);
    List<Map<String,String>> findAgentnameMoney(List agentId,Date createtime1, Date createatime2,Integer isdeliver,Integer page,Integer pages);
    List<Map<String,BigDecimal>> findshopperAndCityAndtime(String cityname, String shoppername, Date date1, Date date2, Integer page, Integer pagesize, List agentid);
    List<RunfastGoodsSellRecord> findaftertime(Date date1, Date date2, String cityname, String shoppername);
    List<RunfastGoodsSellRecord> finderrorOver(Date date1, Date date2, String cityname, String shoppername);
    List<RunfastGoodsSellRecord> findlastscore(Date date1, Date date2, String cityname, String shoppername);
    Integer findAgentnameMoneycount(List agentId, Date date1, Date date2, Integer isdelive, Integer page1, Integer pages);
    Integer findshopperAndCityAndtimecount(String cityname, String shoppername, Date date1, Date date2, Integer page, Integer pagesize, List agentid);

    List<RunfastGoodsSellRecord> findBybussinessWithdraw(Integer userid);
    /*查询商家销量统计导出*/
    List<Map<String,Object>> selectSalesCountExport(Map<String,Object> map);
    /*查询商家销量统计*/
    List<Map<String,Object>> businessSalesCount(Map<String,Object> map);
    /*查询商家销量统计的总商家数*/
    Integer countByBusinessSalesCount(RunfastGoodsSellRecordExample example);
}